﻿using FunArts.EasyDevOps.Shared.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.Command
{
    /// <summary>
    /// 移动文件或目录命令
    /// </summary>
    public class MoveCommand : ILinuxCommand
    {
        /// <summary>
        /// 源路径
        /// </summary>
        public string Source { get; set; } 
        /// <summary>
        /// 目标路径
        /// </summary>
        public string Destination { get; set; } 

        public MoveCommand(string source, string destination)
        {
            Source = source;
            Destination = destination;
        }

        public string BuildCommand(SystemVersionTypeEnum systemVersionType)
        {
            return $"mv {Source} {Destination}";
        }
    }
}
